import java.awt.Graphics2D;
import java.awt.Image;

import javax.swing.ImageIcon;


public class WinBlock implements GameObject{
	
	private int x, y, width, height;
	private Image sprite;
	
	public WinBlock(int x, int y){
		this.x = x;
		this.y = y;
		
		ImageIcon ii = new ImageIcon(this.getClass().getResource("images/win.png"));
		sprite = ii.getImage();
		
		width = sprite.getWidth(null);
		height = sprite.getHeight(null);
	}

	public int getX() {
		return x;
	}

	public int getY() {
		return y;
	}

	public int getWidth() {
		return width;
	}

	public int getHeight() {
		return height;
	}

	public int getType() {
		return 100;
	}

	public int getYSpeed() {
		return 0;
	}

	public int getXSpeed() {
		return 0;
	}

	public void specialFunction(int type) {
		
	}

	public void draw(Graphics2D g2d, Game observer) {
		g2d.drawImage(sprite, x, y, observer);
	}

	public int projectileCollision(int type) {
		return -1;
	}

}
